package com.example.callbackservice;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.retry.annotation.EnableRetry;

import javax.annotation.PostConstruct;


@EnableRetry
@MapperScan("com.willing.*.mapper")
@EnableDubbo
@SpringBootApplication(scanBasePackages = {"com.example.common", "com.example.callbackservice", "com.example.advice"})
public class CallbackServiceApplication {

    @Value("${spring.cloud.nacos.discovery.server-addr}")
    private String nacosAddr;

    @PostConstruct
    public void init(){
        System.out.println(" CallbackServiceApplication============================== nacosAddr is " + nacosAddr);
    }

    public static void main(String[] args) {
        SpringApplication.run(CallbackServiceApplication.class, args);
    }

}
